package com;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * TPubuser entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "T_PUBUSER", schema = "PORTAL2013325")
public class TPubuser implements java.io.Serializable {

	// Fields

	private TPubuserId id;

	// Constructors

	/** default constructor */
	public TPubuser() {
	}

	/** full constructor */
	public TPubuser(TPubuserId id) {
		this.id = id;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides( {
			@AttributeOverride(name = "guid", column = @Column(name = "GUID", length = 38)),
			@AttributeOverride(name = "itemid", column = @Column(name = "ITEMID", nullable = false, precision = 9, scale = 0)),
			@AttributeOverride(name = "code", column = @Column(name = "CODE", nullable = false, length = 50)),
			@AttributeOverride(name = "name", column = @Column(name = "NAME", nullable = false, length = 100)),
			@AttributeOverride(name = "shortname", column = @Column(name = "SHORTNAME", length = 100)),
			@AttributeOverride(name = "wholename", column = @Column(name = "WHOLENAME", length = 100)),
			@AttributeOverride(name = "startdate", column = @Column(name = "STARTDATE", length = 7)),
			@AttributeOverride(name = "enddate", column = @Column(name = "ENDDATE", length = 7)),
			@AttributeOverride(name = "levelno", column = @Column(name = "LEVELNO", nullable = false, precision = 3, scale = 0)),
			@AttributeOverride(name = "isleaf", column = @Column(name = "ISLEAF", nullable = false, precision = 2, scale = 0)),
			@AttributeOverride(name = "status", column = @Column(name = "STATUS", nullable = false, precision = 9, scale = 0)),
			@AttributeOverride(name = "superitemid", column = @Column(name = "SUPERITEMID", precision = 9, scale = 0)),
			@AttributeOverride(name = "versionnum", column = @Column(name = "VERSIONNUM", precision = 15, scale = 0)),
			@AttributeOverride(name = "action", column = @Column(name = "ACTION", precision = 1, scale = 0)),
			@AttributeOverride(name = "elementcode", column = @Column(name = "ELEMENTCODE", length = 30)),
			@AttributeOverride(name = "password", column = @Column(name = "PASSWORD", length = 60)),
			@AttributeOverride(name = "idcardno", column = @Column(name = "IDCARDNO", length = 18)),
			@AttributeOverride(name = "organid", column = @Column(name = "ORGANID", nullable = false, length = 6)),
			@AttributeOverride(name = "position", column = @Column(name = "POSITION")),
			@AttributeOverride(name = "celaner", column = @Column(name = "CELANER", precision = 22, scale = 0)),
			@AttributeOverride(name = "orgtype", column = @Column(name = "ORGTYPE", length = 6)),
			@AttributeOverride(name = "tel", column = @Column(name = "TEL", length = 30)),
			@AttributeOverride(name = "isadmin", column = @Column(name = "ISADMIN", precision = 22, scale = 0)) })
	public TPubuserId getId() {
		return this.id;
	}

	public void setId(TPubuserId id) {
		this.id = id;
	}

}